import { createStore } from "vuex";

const store = createStore({
  state() {
    return {
      cityName: "北京",
    };
  },
  mutations: {
    changeCity(state, payload) {
      state.cityName = payload.name;
    },
  },
});

export default store;
